Q3CString_EmptyData
You can use theQ3CString_EmptyData
function to dispose of the memory allocated by a previous call toQ3CString_GetString
.
TQ3Status Q3CString_EmptyData (char **string);
string
- On entry, a pointer to a copy of the character data returned by a previous call to
Q3CString_GetString
. On exit, the valueNULL
.DESCRIPTION
TheQ3CString_EmptyData
function deallocates the memory pointed to by thestring
parameter. The value of thestring
parameter must have been returned by a previous call to theQ3CString_GetString
function. If successful,Q3CString_EmptyData
sets the value of thestring
parameter toNULL
. Thus, you can alternate calls toQ3CString_GetString
andQ3CString_EmptyData
without explicitly setting the character pointer toNULL
.You should use
Q3CString_EmptyData
only with string objects of typekQ3StringTypeCString
.